﻿<!--- ==================================================
NAME:	get_order1
DESC:	File used to get order history.
=================================================== --->
<cfsetting enablecfoutputonly="yes">

<!--- default data --->
<cfparam name="arguments.customerid" type="any" default="">
<cfparam name="arguments.contactid" type="any" default="">
<cfparam name="arguments.user_id" type="any" default="">
<cfparam name="arguments.cid" type="any" default="">
<cfparam name="arguments.ordertype" type="any" default="A">
<cfparam name="arguments.start_date" type="any" default="">
<cfparam name="arguments.end_date" type="any" default="">
<cfparam name="arguments.tsr_id" type="any" default="">

<!--- build xml statement --->
<cfscript>
xi_namespace='#trim(application.xi_namespace)#:ORDERS:GetOrder1';
xi_interface='GetOrder1_OB';
xml = '<xtiinput>
<inputheader>
	<actionset>
		<action>get_order1</action>
	</actionset>
</inputheader>
	<inputdata>
		<system>#variables.system#</system>
		<customerid>#arguments.customerid#</customerid>
		<contactid>#arguments.contactid#</contactid>
		<user_id>#arguments.user_id#</user_id>
		<tsr_id>#arguments.tsr_id#</tsr_id>
		<cid>#arguments.cid#</cid>
		<order_header>
			<order_type>#ucase(arguments.ordertype)#</order_type>
			<start_date>#arguments.start_date#</start_date>
			<end_date>#arguments.end_date#</end_date>
		</order_header>
	</inputdata>
</xtiinput>';
</cfscript>